import { stringify } from 'qs';
import request from '@/utils/request';



export async function deleteByPrimaryKeyForMeetingRecord(params = {}) {
    return request(`/ebook/web/api/service/meetingrecord/delete?${stringify(params)}`);
}


export async function selectByPrimaryKeyForMeetingRecord(params = {}) {
    return request(`/ebook/web/api/service/meetingrecord/get?${stringify(params)}`);
}


export async function insertForMeetingRecord(params = {}) {
    return request(`/ebook/web/api/service/meetingrecord/insert`, {
        method: 'POST',
        data: {
            ...params,
            method: 'insert',
        },
    });
}


export async function updateForMeetingRecord(params = {}) {
    return request(`/ebook/web/api/service/meetingrecord/update`, {
        method: 'POST',
        data: {
            ...params,
            method: 'update',
        },
    });
}


export async function deleteByMapForMeetingRecord(params = {}) {
    return request(`/ebook/web/api/service/meetingrecord/deleteByMap`, {
        method: 'POST',
        data: {
            ...params,
            method: 'delete',
        },
    });
}


export async function updateByMapForMeetingRecord(params = {}) {
    return request(`/ebook/web/api/service/meetingrecord/updateByMap`, {
        method: 'POST',
        data: {
            ...params,
            method: 'update',
        },
    });
}


export async function getOneForMeetingRecord(params = {}) {
    return request(`/ebook/web/api/service/meetingrecord/getOne`, {
        method: 'POST',
        data: {
            ...params,
            method: 'fetch',
        },
    });
}



export async function getAllForMeetingRecord(params = {}) {
    return request(`/ebook/web/api/service/meetingrecord/getAll`, {
        method: 'POST',
        data: {
            ...params,
            method: 'fetch',
        },
    });
}


export async function queryPageForMeetingRecord(params = {}) {
    return request(`/ebook/web/api/service/meetingrecord/queryPage`, {
        method: 'POST',
        data: {
            ...params,
            method: 'fetch',
        },
    });
}


export async function countForMeetingRecord(params = {}) {
    return request(`/ebook/web/api/service/meetingrecord/count`, {
        method: 'POST',
        data: {
            ...params,
            method: 'fetch',
        },
    });
}

export async function insertBatchForMeetingRecord(params = {}) {
    return request(`/ebook/web/api/service/meetingrecord/insertBatch`, {
        method: 'POST',
        data: {
            ...params,
            method: 'insert',
        },
    });
}


export async function deleteBatchForMeetingRecord(params = {}) {
    return request(`/ebook/web/api/service/meetingrecord/deleteBatch`, {
        method: 'POST',
        data: {
            ...params,
            method: 'delete',
        },
    });
}


export async function updateBatchForMeetingRecord(params = {}) {
    return request(`/ebook/web/api/service/meetingrecord/updateBatch`, {
        method: 'POST',
        data: {
            ...params,
            method: 'update',
        },
    });
}

export async function queryPageForMeeting(params = {}) {
    return request(`/ebook/web/api/service/meeting/queryPage`, {
        method: 'POST',
        data: {
            ...params,
            method: 'fetch',
        },
    });
}

export async function getPageMeetingRecordByMeetingId(params = {}) {
    return request(`/ebook/web/api/service/meetingrecord/getPageMeetingRecordByMeetingId`, {
        method: 'POST',
        data: {
            ...params,
            method: 'fetch',
        },
    });
}
